﻿using Station.Common.Rejudgment;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Station.Inspect.Rejudgment
{
    public class CellInfo
    {
        public Dictionary<string, ErrCell> DicCell = new Dictionary<string, ErrCell>();
        public bool IsNG
        {
            get
            {
                if (DicCell.Count == 0)
                    return true;
                bool isNG = false;
                foreach (var item in DicCell)
                {
                    if (item.Value.Status == CellStatus.NG)
                    {
                        isNG = true;
                        break;
                    }
                }
                return isNG;
            }
        }
        public void Add(string faceName,ErrCell cell)
        {
            DicCell[faceName] = cell;
        }
    }
}
